home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ggggllllccccGGGGeeeettttSSSSttttrrrriiiinnnnggggCCCChhhhaaaarrrrMMMMeeeettttrrrriiiicccc((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL CCCChhhhaaaarrrraaaacccctttteeeerrrr RRRReeeennnnddddeeeerrrreeeerrrr
-
-
-
- NNNNAAAAMMMMEEEE
- ggggllllccccGGGGeeeettttSSSSttttrrrriiiinnnnggggCCCChhhhaaaarrrrMMMMeeeettttrrrriiiicccc - retrieve character metric from measurement
- buffer
-
-
- CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
- GLfloat* ggggllllccccGGGGeeeettttSSSSttttrrrriiiinnnnggggCCCChhhhaaaarrrrMMMMeeeettttrrrriiiicccc( GLint _i_n_I_n_d_e_x,
- GLCenum _i_n_M_e_t_r_i_c,
- GLfloat *_o_u_t_V_e_c )
-
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
- _i_n_I_n_d_e_x Specifies which element in the string to measure.
-
- _i_n_M_e_t_r_i_c Specifies the metric to measure, either GGGGLLLLCCCC____BBBBAAAASSSSEEEELLLLIIIINNNNEEEE or
- GGGGLLLLCCCC____BBBBOOOOUUUUNNNNDDDDSSSS.
-
- _o_u_t_V_e_c Specifies a vector in which to store value of _i_n_M_e_t_r_i_c for the
- specified character.
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- ggggllllccccGGGGeeeettttSSSSttttrrrriiiinnnnggggCCCChhhhaaaarrrrMMMMeeeettttrrrriiiicccc retrieves a character metric from the GLC
- measurement buffer and stores it in _o_u_t_V_e_c. To store a string in the
- measurement buffer, call ggggllllccccMMMMeeeeaaaassssuuuurrrreeeeCCCCoooouuuunnnntttteeeeddddSSSSttttrrrriiiinnnngggg or ggggllllccccMMMMeeeeaaaassssuuuurrrreeeeSSSSttttrrrriiiinnnngggg.
-
- The position of the character to measure is specified by _i_n_I_n_d_e_x. The
- metric, either GGGGLLLLCCCC____BBBBAAAASSSSEEEELLLLIIIINNNNEEEE or GGGGLLLLCCCC____BBBBOOOOUUUUNNNNDDDDSSSS, is specified by _i_n_M_e_t_r_i_c.
-
- If the command does not raise an error, its return value is _o_u_t_V_e_c. If
- _i_n_M_e_t_r_i_c is GGGGLLLLCCCC____BBBBOOOOUUUUNNNNDDDDSSSS, the vector returned in _o_u_t_V_e_c starts in the
- lower left corner and continues in a counterclockwise direction.
-
- EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
- The following example first calls ggggllllccccMMMMeeeeaaaassssuuuurrrreeeeSSSSttttrrrriiiinnnngggg to store the string
- "hello" in the measurement buffer. It then retrieves both the baseline
- and the bounding box for the whole string, then for each individual
- character.
-
- _GGGG_LLLL_ffff_llll_oooo_aaaa_tttt _oooo_vvvv_eeee_rrrr_aaaa_llll_llll_BBBB_aaaa_ssss_eeee_llll_iiii_nnnn_eeee_[[[[_4444_]]]]_;;;;
- _GGGG_LLLL_ffff_llll_oooo_aaaa_tttt _oooo_vvvv_eeee_rrrr_aaaa_llll_llll_BBBB_oooo_uuuu_nnnn_dddd_iiii_nnnn_gggg_BBBB_oooo_xxxx_[[[[_8888_]]]]_;;;;
-
- _GGGG_LLLL_ffff_llll_oooo_aaaa_tttt _cccc_hhhh_aaaa_rrrr_BBBB_aaaa_ssss_eeee_llll_iiii_nnnn_eeee_ssss_[[[[_4444_]]]]_[[[[_5555_]]]]_;;;;
- _GGGG_LLLL_ffff_llll_oooo_aaaa_tttt _cccc_hhhh_aaaa_rrrr_BBBB_oooo_uuuu_nnnn_dddd_iiii_nnnn_gggg_BBBB_oooo_xxxx_eeee_ssss_[[[[_8888_]]]]_[[[[_5555_]]]]_;;;;
-
- _GGGG_LLLL_iiii_nnnn_tttt _iiii_;;;;
-
- _gggg_llll_cccc_MMMM_eeee_aaaa_ssss_uuuu_rrrr_eeee_SSSS_tttt_rrrr_iiii_nnnn_gggg_((((_GGGG_LLLL______TTTT_RRRR_UUUU_EEEE_,,,, _""""_hhhh_eeee_llll_llll_oooo_""""_))))_;;;;
-
- _gggg_llll_cccc_GGGG_eeee_tttt_SSSS_tttt_rrrr_iiii_nnnn_gggg_MMMM_eeee_tttt_rrrr_iiii_cccc_((((_GGGG_LLLL_CCCC______BBBB_AAAA_SSSS_EEEE_LLLL_IIII_NNNN_EEEE_,,,, _oooo_vvvv_eeee_rrrr_aaaa_llll_llll_BBBB_aaaa_ssss_eeee_llll_iiii_nnnn_eeee_))))_;;;;
- _gggg_llll_cccc_GGGG_eeee_tttt_SSSS_tttt_rrrr_iiii_nnnn_gggg_MMMM_eeee_tttt_rrrr_iiii_cccc_((((_GGGG_LLLL_CCCC______BBBB_OOOO_UUUU_NNNN_DDDD_SSSS_,,,, _oooo_vvvv_eeee_rrrr_aaaa_llll_llll_BBBB_oooo_uuuu_nnnn_dddd_iiii_nnnn_gggg_BBBB_oooo_xxxx_))))_;;;;
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ggggllllccccGGGGeeeettttSSSSttttrrrriiiinnnnggggCCCChhhhaaaarrrrMMMMeeeettttrrrriiiicccc((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL CCCChhhhaaaarrrraaaacccctttteeeerrrr RRRReeeennnnddddeeeerrrreeeerrrr
-
-
-
- _ffff_oooo_rrrr _((((_iiii _==== _0000 _;;;; _iiii _<<<< _5555 _;;;; _++++_++++_iiii_)))) _{{{{
- _gggg_llll_cccc_GGGG_eeee_tttt_SSSS_tttt_rrrr_iiii_nnnn_gggg_CCCC_hhhh_aaaa_rrrr_MMMM_eeee_tttt_rrrr_iiii_cccc_((((_iiii_,,,, _GGGG_LLLL_CCCC______BBBB_AAAA_SSSS_EEEE_LLLL_IIII_NNNN_EEEE_,,,, _cccc_hhhh_aaaa_rrrr_BBBB_aaaa_ssss_eeee_llll_iiii_nnnn_eeee_ssss_[[[[_iiii_]]]]_))))_;;;;
- _gggg_llll_cccc_GGGG_eeee_tttt_SSSS_tttt_rrrr_iiii_nnnn_gggg_CCCC_hhhh_aaaa_rrrr_MMMM_eeee_tttt_rrrr_iiii_cccc_((((_iiii_,,,, _GGGG_LLLL_CCCC______BBBB_OOOO_UUUU_NNNN_DDDD_SSSS_,,,, _cccc_hhhh_aaaa_rrrr_BBBB_oooo_uuuu_nnnn_dddd_iiii_nnnn_gggg_BBBB_oooo_xxxx_eeee_ssss_[[[[_iiii_]]]]_))))_;;;;
- _}}}}
-
- NNNNOOOOTTTTEEEESSSS
- ggggllllccccGGGGeeeettttSSSSttttrrrriiiinnnnggggCCCChhhhaaaarrrrMMMMeeeettttrrrriiiicccc is useful if you're interested in the metric of a
- character as it appears in a string, that is, influenced by kerning,
- ligatures, and so on. To measure a character as if it started at the
- origin, call ggggllllccccGGGGeeeettttCCCChhhhaaaarrrrMMMMeeeettttrrrriiiicccc.
-
- EEEERRRRRRRROOOORRRRSSSS
- GGGGLLLLCCCC____PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRR____EEEERRRRRRRROOOORRRR is generated if _i_n_I_n_d_e_x is less than zero or is
- greater than or equal to the value of the variable
- GGGGLLLLCCCC____MMMMEEEEAAAASSSSUUUURRRREEEEDDDD____CCCCHHHHAAAARRRR____CCCCOOOOUUUUNNNNTTTT.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- ggggllllccccGGGGeeeettttCCCChhhhaaaarrrrMMMMeeeettttrrrriiiicccc, ggggllllccccGGGGeeeettttMMMMaaaaxxxxCCCChhhhaaaarrrrMMMMeeeettttrrrriiiicccc, ggggllllccccMMMMeeeeaaaassssuuuurrrreeeeCCCCoooouuuunnnntttteeeeddddSSSSttttrrrriiiinnnngggg,
- ggggllllccccMMMMeeeeaaaassssuuuurrrreeeeSSSSttttrrrriiiinnnngggg
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-